'use strict';

define(['angular', 'app'], function(angular, app) {

	return app.config(function ($routeProvider) {
              $routeProvider
                .when('/', {
                    templateUrl: 'views/dashboard.html',
                    controller: 'DashboardCtrl'
                }).when('/dashboard', {
                    templateUrl: 'views/dashboard.html',
                    controller: 'DashboardCtrl'
                }).when('/login', {
                    templateUrl: 'views/login.html',
                    controller: 'LoginCtrl'
                }).when('/mission', {
                    templateUrl: 'views/mission.html',
                    controller: 'MissionCtrl'
                }).when('/contact', {
                    templateUrl: 'views/contact.html',
                    controller: 'ContactCtrl'
                }).when('/store', {
                    templateUrl: 'views/store.html',
                    controller: 'StoreCtrl'
                }).when('/profile', {
                    templateUrl: 'views/profile.html',
                    controller: 'ProfileCtrl'
                }).when('/settings', {
                    templateUrl: 'views/settings.html',
                    controller: 'SettingsCtrl'
                }).when('/policy', {
                    templateUrl: 'views/policy.html',
                    controller: 'PolicyCtrl'
                }).when('/item', {
                    templateUrl: 'views/item.html',
                    controller: 'ItemCtrl'
                }).when('/active-code', {
                    templateUrl: 'views/active-code.html',
                    controller: 'ActiveCodeCtrl'
                }).when('/children', {
                    templateUrl: 'views/children.html',
                    controller: 'ChildrenCtrl'
                }).when('/parents', {
                    templateUrl: 'views/parents.html',
                    controller: 'ParentsCtrl'
                }).when('/admins', {
                    templateUrl: 'views/admins.html',
                    controller: 'AdminsCtrl'
                }).otherwise({
                    redirectTo: '/login'
                });
            });

});
